package com.sgzn.sgpay.service.tcp.api;

import com.sgzn.sgpay.model.response.SgsResultResponse;
import com.sgzn.sgpay.service.SgsCreditIncreaseCallBackService;
import com.sgzn.sgpay.service.tcp.model.TcpConsumeRequest;

import java.net.Socket;

/**
 * Created by xxjs-gd-llf
 * DATETIME:2018/4/18 16:41
 * Description:
 */
public interface TcpConsumeService {

    /**
     * 发起上分消费请求
     * @param request
     */
    SgsResultResponse<String> tcpSendConsumeRequest(TcpConsumeRequest request);


    /**
     * 接收客户端充值成功的应答
     */
    boolean handleConsumeResponse(String recvBuffer, Socket socket);


}
